package com.yusong.test.factoryBean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * Created by yusong on 2017/3/6.
 */
public class StuFactory<Student> implements FactoryBean<Student>, InitializingBean {


    @Override
    public Student getObject() throws Exception {
        return null;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("student class initialized.");
    }

    /*public Class getObjectType() {
        return Student.class;
    }*/

    @Override
    public Class<?> getObjectType() {
        return null ;
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}
